#ifndef WORKERTHREAD_H
#define WORKERTHREAD_H

#include <QThread>

class WorkerThread : public QThread
{
    Q_OBJECT
public:
    explicit WorkerThread(quint64 len, bool enqueue, QObject *parent = nullptr);

signals:
    void dataProcessed(const QString &data);

protected:
    void run() override;

private:
    quint64 m_len;
    bool m_enqueue;
};

#endif // WORKERTHREAD_H
